package com.jic.market.service.skill;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.skill.ActivityMerchantConfig;
import com.jic.market.request.CouponDetailRequest;
import com.jic.market.request.manager.base.PromotionIdRequest;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商家配置表
 *
 * @author : seven
 * @version : v1.0.0
 * @email : 774329481@qq.com
 * @since : 2020-03-12 04:52:22
 */
public interface ActivityMerchantConfigService {

    long insert(ActivityMerchantConfig activityMerchantConfig);

    long delete(String promotionId);

    long update(ActivityMerchantConfig activityMerchantConfig);

    ActivityMerchantConfig queryByPrimaryKey(Long id);

    List<ActivityMerchantConfig> query(ActivityMerchantConfig activityMerchantConfig);

    PageResult<ActivityMerchantConfig> queryPage(ActivityMerchantConfig activityMerchantConfig, Page pageQuery);

    List<ActivityMerchantConfig> queryByPromotionId(String promotionId, Integer start , Integer limit, List<Long> authMerchantIds, CouponDetailRequest promotionIdRequest);

    long deleteByPromotionIdAndMerchantId(String promotionId,
                                          String merchantId);

    public boolean copyMerchant(PromotionIdRequest promotionIdRequest, String newPromotionId);

    Long queryByPromotionIdTotal(String promotionId,List<Long> authMerchantIds, CouponDetailRequest promotionIdRequest);

    List<Long> queryMerchantIdsByPromotionId(String promotionId);
}